<?php
/*
 * CRMUrlManager File
 *
 * @link http://riedel-st.de
 * @author Stefan Riedel <sr@riedel-st.de>
 */

/**
 * Our Urlmanager
 *
 * @author Stefan Riedel
 */
class CRMUrlManager extends CUrlManager {
    public function getRules() {
        return $this->rules;
    }
    public function getRule($name) {
        if(false === array_key_exists($name, $this->rules)) {
            throw new CException(Yii::t('crm','Die Resource ' . $name . ' existiert leider nicht.'));
        }
        return '/'.$this->rules[$name];
    }
}
?>
